package com.kinyx.demo.entities.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.kinyx.framework.db.annotation.Order;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
public class ColumnOrderEntity {

	@Id
	@Column(nullable = false, updatable = false, length = 32)
	private String id;

	@Order(4)
	private Byte x;
	private Byte y;
	@Order(-6)
	private Byte z;
	private Byte a;
	@Order(-5)
	private Byte b;
	@Order(2)
	private Byte c;

	// 目前，无排序功能时，H将按照字母顺序创建，因此，即使实体类中书写顺序为x、y、z、a、b、c，结果最终仍然将按照a、b、c、x、y、z建表。

}
